/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Sessions;


import entityBeans.Accounts;
import entityBeans.Category;
import entityBeans.Customers;
import entityBeans.Productsstore;
import java.rmi.RemoteException;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author BELALOUACHE
 */
@Remote
public interface EcomAdminRemote {
    public void createCust(String name, String fistNane, String mail, String pwd, String num_cmp, Double solde,String adresse) throws RemoteException;;// cr�er un nouveau client
    public void removeCust(Integer idCust) throws RemoteException;// supprimer un client de la BD
    public List<Customers> getClientByname(String name)throws RemoteException ;// Recherche un client par son nom
    public Customers getClientById(Integer idClient) throws RemoteException;
    public List<Customers> getAllClient() throws RemoteException; // Retourner la liste de tous les clients.
    public void createProd(String name, double price, Category cat, Productsstore store)throws RemoteException;; //cr�er un nouveau produit
    public void removeProd(Integer Pkprod)throws RemoteException; ; // supprimer le produit de la BD
    public void createStore(String name, String num_comp, double solde,String adress)throws RemoteException;; // cr�er un nouveau magasin
    public void removeStore(Integer idStore)throws RemoteException;; // supprimer un magasion de la BD
    public void createCat (String name)throws RemoteException;; // cr�er une nouvelle cat�gorie
    public List<Accounts> getAccounts ()throws RemoteException;; // Liste tous les comptes
    public Category getCat(int idCat) throws RemoteException; // retourne la cat�gorie
    public Productsstore getStore(int idStore) throws RemoteException; // retourne la boutique
}
